package cn.skyquant.quant4j.service.boot.model.economics.jinshi;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface EconomicsEventRepository extends CrudRepository<EconomicsEvent, Integer> {
    List<EconomicsEvent> findByDatetime(Date publictime);
    @Query("select u from EconomicsEvent u where u.datetime between ?1 and ?2 ")
    List<EconomicsEvent> findBetweenDatetime(Date begin, Date end);
}
